package com.example.springboot.mapper;

import com.example.springboot.entity.DryingProgramOption;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DryingProgramOptionMapper {
    List<DryingProgramOption> findAll(@Param("offset") int offset, @Param("size") int size);
    int getTotal();
    int update(DryingProgramOption dryingOption);
    int insert(DryingProgramOption dryingOption);
    int delete(@Param("dryingId") Long dryingId);
    String findAdminRoleByUsername(@Param("username") String username);
}